import getlink from '@/api/getapi.js'
let board={
    state: {
        str:[]
    },
    mutations: {
        upstr(state,payload){
            state.str=payload.data
        }
    },
    actions: {
        uplist(context){
           getlink("/data/list/board").then((ok)=>{
            // console.log(ok.data);
            context.commit("upstr",{data:ok.data})
              
           })
        }
    },
}
export default board